package com.hzyl.famousreader.repository.persistence.entity;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;

import java.io.Serializable;
import java.util.Date;

@Entity
public class Ad implements Serializable {

  private static final long serialVersionUID = -3425651756257163666L;
  @PrimaryKey
  private Long id;

  @ColumnInfo(name = "title")
  private String title;

  @ColumnInfo(name = "description")
  private String description;

  @ColumnInfo(name = "url")
  private String url;

  @ColumnInfo(name = "sort")
  private Integer sort;

  @ColumnInfo(name = "start_expiry")
  private Date startExpiry;

  @ColumnInfo(name = "end_expiry")
  private Date endExpiry;

  @ColumnInfo(name = "path")
  private String path;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public Integer getSort() {
    return sort;
  }

  public void setSort(Integer sort) {
    this.sort = sort;
  }

  public Date getStartExpiry() {
    return startExpiry;
  }

  public void setStartExpiry(Date startExpiry) {
    this.startExpiry = startExpiry;
  }

  public Date getEndExpiry() {
    return endExpiry;
  }

  public void setEndExpiry(Date endExpiry) {
    this.endExpiry = endExpiry;
  }

  public String getPath() {
    return path;
  }

  public void setPath(String path) {
    this.path = path;
  }
}
